package cn.com.yx.ms.persistence;

import cn.com.yx.ms.application.web.ApiQueryBase;
import cn.com.yx.ms.domain.dbmodel.UpDevUpdateReplayProgress;
import cn.com.yx.ms.domain.dev.DevUpdateReplayProgress;
import cn.com.yx.ms.domain.dev.UpDevUpdateLogModel;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface UpDevUpdateReplayProgressMapper {
    int deleteByPrimaryKey(String guid);

    int insert(UpDevUpdateReplayProgress record);

    int insertSelective(UpDevUpdateReplayProgress record);

    UpDevUpdateReplayProgress selectByPrimaryKey(String guid);

    int updateByPrimaryKeySelective(UpDevUpdateReplayProgress record);

    int updateByPrimaryKey(UpDevUpdateReplayProgress record);

    List<UpDevUpdateLogModel> findUpDevUpdateLogs(ApiQueryBase query);

    int deleteByVersionAndDevsn(@Param("devsn") String devsn, @Param("version") String version);

    int updateReplayTime(@Param("devsn") String devsn, @Param("version") String version, @Param("replaytime") String replaytime);

    List<DevUpdateReplayProgress> findBydevsn(@Param("devsn") String devsn);
}